avoid build warning on windows
authorJoey Hess <joeyh@joeyh.name>
Fri, 24 Jan 2025 15:33:50 +0000 (11:33 -0400)
committerJoey Hess <joeyh@joeyh.name>
Fri, 24 Jan 2025 15:33:50 +0000 (11:33 -0400)
Utility/LockFile/Windows.hs

index c8e7c1bf5242bed8f1d404263f490dde7b9a0efa..9f35ec1129bd35f09f106bceee15e4d34fe3645a 100644 (file)
@@ -75,9 +75,9 @@ openLock sharemode f = do
        return $ if h == iNVALID_HANDLE_VALUE
                then Nothing
                else Just h
-#endif
   where
        security_attributes = maybePtr Nothing
+#endif
 
 dropLock :: LockHandle -> IO ()
 dropLock = closeHandle